To find the middle number among three different numbers